Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

factory contract integration testcases #75

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

Abhishek-1857
Copy link

@Abhishek-1857 Abhishek-1857 commented Nov 20, 2024

Pull Request

Description

Added integration test cases for core functionalities in the factory contract, including create pool, add liquidity, register token, and swap token. These tests ensure correctness and robustness for essential contract operations, along with edge case validation for handling unexpected inputs or scenarios.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Refactor/Chore

Related Issue

None

Testing

integration tests added for factory contract

Checklist

  • Self-review completed
  • Tests added/updated (if applicable)
  • Documentation updated (if applicable)

Screenshots (if applicable)

None

Additional Notes

None

@SlayerAnsh SlayerAnsh requested a review from joemonem November 25, 2024 10:19
);
}

add_liquidity(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In cross-chain test cases we need to set assertions on the sending and receiving chain to make sure everything is working as expected. Errors on the receiving chain won't show here.
This applies to all cases where were expect the transaction to work.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joemonem fixed some changes let me know if there should be any other assertions that need to be added

},
},
slippage_tolerance_bps: 100, // 1% slippage tolerance
timeout: None, // 10 minutes in seconds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

timeout is None, but the comment says 10 minutes in seconds

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@joemonem
Copy link
Contributor

Try merging the development branch into this one to resolve merge conflicts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants